<template>
  <el-dialog
    append-to-body
    title="用户登录日志"
    :visible.sync="dialogVisible"
    width="1600px">
    <user-login-log-page v-if="dialogVisible && userId>0" :user-type-params="userType" :user-id-params="userId"/>
  </el-dialog>
</template>

<script>
import UserLoginLogPage from '../Page/UserLoginLogPage'
export default {
  name: 'UserLoginLogDialog',
  components: {UserLoginLogPage},
  props:{
    successFunction:Function
  },
  data: function () {
    return {
      info:'用户登录日志',
      dialogVisible: false,
      userType:'',
      userId:'',
    }
  },
  mounted () {
  },
  methods: {
    open: function (userType,userId) {
      this.userType=userType
      this.userId=userId
      this.dialogVisible = true
      this.$forceUpdate()
    }
  }
}
</script>

<style scoped>

</style>
